//
//  MyfriendTableViewCell.m
//  SunXi
//
//  Created by dllo on 15/12/4.
//  Copyright © 2015年 大远. All rights reserved.
//

#import "MyfriendTableViewCell.h"

@implementation MyfriendTableViewCell{
    UIImageView *_userimageView;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self createData];
    }
    return self;
}
- (void)createData{
    _userimageView = [[UIImageView alloc]init];
    [SCV addSubview:_userimageView];
    
    self.username = [[UILabel alloc]init];
    [SCV addSubview:self.username];
    
}
- (void)layoutSubviews{
    [super layoutSubviews];
    [_userimageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(35, 35));
        make.top.equalTo(SCV).offset(5);
        make.left.equalTo(SCV).offset(20);
    }];
    _userimageView.image = [UIImage imageNamed:@"haoyou"];
    
    [self.username mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(_userimageView);
        make.left.equalTo(_userimageView.mas_right).offset(5);
        make.size.mas_equalTo(CGSizeMake(200, 20));

    }];
    
    
    
    
    
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
